/*
 * Copyright 2008 Jens Meiss
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.hmvc4gwt.example.hmvcblog.frontend.dashboard.client.edit.blog;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTMLTable;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.hmvc4gwt.client.view.AViewGwt;

/**
 * 
 * @author jens.meiss
 */
public class EditBlogView extends AViewGwt {	

	private Panel panelEditBlogView;
	
	private Button buttonSave;

	private Label labelTitle;
	
	private Label labelLastUpdated;
	
	private Label labelLastUpdatedDate;
	
//	private Label labelAccountStatus;
	
	private Label labelDescription;

	private Label labelBlogTitleEmpty;

	private Button buttonAddEntry;
	
	private TextBox textBoxTitle;
	
	private TextArea textAreaDescription;

	private Tree treeBlogEntries;

	private Button buttonCancel;

	private Panel panelButtons;

	private HTMLTable tableBlogData;
	
	private Panel panelBlogDataAndButtons;
	
	/**
	 * @return the buttonAddEntry
	 */
	public Button getButtonAddEntry() {
		return buttonAddEntry;
	}

	/**
	 * @return the buttonCancel
	 */
	public Button getButtonCancel() {
		return buttonCancel;
	}

	/**
	 * @return the buttonSave
	 */
	public Button getButtonSave() {
		return buttonSave;
	}
	
	/**
	 * @return the labelBlogTitleEmpty
	 */
	public Label getLabelBlogTitleEmpty() {
		return labelBlogTitleEmpty;
	}

	/**
	 * @return the labelDescription
	 */
	public Label getLabelDescription() {
		return labelDescription;
	}

//	/**
//	 * @return the labelAccountStatus
//	 */
//	public Label getLabelAccountStatus() {
//		return labelAccountStatus;
//	}

	/**
	 * @return the labelLastUpdated
	 */
	public Label getLabelLastUpdated() {
		return labelLastUpdated;
	}
	
	/**
	 * @return the labelLastUpdatedDate
	 */
	public Label getLabelLastUpdatedDate() {
		return labelLastUpdatedDate;
	}

	/**
	 * @return the labelTitle
	 */
	public Label getLabelTitle() {
		return labelTitle;
	}

	/**
	 * @return the panelBlogDataAndButtons
	 */
	public Panel getPanelBlogDataAndButtons() {
		return panelBlogDataAndButtons;
	}

	/**
	 * @return the panelButtons
	 */
	public Panel getPanelButtons() {
		return panelButtons;
	}

	/**
	 * @return the panelEditBlogView
	 */
	public Panel getPanelEditBlogView() {
		return panelEditBlogView;
	}

	/**
	 * @return the panelBlogData
	 */
	public HTMLTable getTableBlogData() {
		return tableBlogData;
	}

	/**
	 * @return the textAreaDescrption
	 */
	public TextArea getTextAreaDescription() {
		return textAreaDescription;
	}

	/**
	 * @return the textBoxTitle
	 */
	public TextBox getTextBoxTitle() {
		return textBoxTitle;
	}

	/**
	 * @return the treeBlogEnties
	 */
	public Tree getTreeBlogEntries() {
		return treeBlogEntries;
	}

	public Widget getWidget() {
		return getPanelEditBlogView();
	}

	/**
	 * @param buttonAddEntry the buttonAddEntry to set
	 */
	public void setButtonAddEntry(Button buttonAddEntry) {
		this.buttonAddEntry = buttonAddEntry;
	}

	/**
	 * @param buttonCancel the buttonCancel to set
	 */
	public void setButtonCancel(Button buttonCancel) {
		this.buttonCancel = buttonCancel;
	}

	/**
	 * @param buttonSave the buttonSave to set
	 */
	public void setButtonSave(Button buttonSave) {
		this.buttonSave = buttonSave;
	}

	/**
	 * @param horizontalPanelButtons the horizontalPanelButtons to set
	 */
	public void setHorizontalPanelButtons(HorizontalPanel horizontalPanelButtons) {
		this.panelButtons = horizontalPanelButtons;
	}

	/**
	 * @param labelBlogTitleEmpty the labelBlogTitleEmpty to set
	 */
	public void setLabelBlogTitleEmpty(Label labelBlogTitleEmpty) {
		this.labelBlogTitleEmpty = labelBlogTitleEmpty;
	}

//	/**
//	 * @param labelAccountStatus the labelAccountStatus to set
//	 */
//	public void setLabelAccountStatus(Label labelAccountStatus) {
//		this.labelAccountStatus = labelAccountStatus;
//	}

	/**
	 * @param labelDescription the labelDescription to set
	 */
	public void setLabelDescription(Label labelDescription) {
		this.labelDescription = labelDescription;
	}

	/**
	 * @param labelLastUpdated the labelLastUpdated to set
	 */
	public void setLabelLastUpdated(Label labelLastUpdated) {
		this.labelLastUpdated = labelLastUpdated;
	}

	/**
	 * @param labelLastUpdatedDate the labelLastUpdatedDate to set
	 */
	public void setLabelLastUpdatedDate(Label labelLastUpdatedDate) {
		this.labelLastUpdatedDate = labelLastUpdatedDate;
	}

	/**
	 * @param labelTitle the labelTitle to set
	 */
	public void setLabelTitle(Label labelTitle) {
		this.labelTitle = labelTitle;
	}

	/**
	 * @param panelBlogDataAndButtons the panelBlogDataAndButtons to set
	 */
	public void setPanelBlogDataAndButtons(Panel panelBlogDataAndButtons) {
		this.panelBlogDataAndButtons = panelBlogDataAndButtons;
	}

	/**
	 * @param panelButtons the panelButtons to set
	 */
	public void setPanelButtons(Panel panelButtons) {
		this.panelButtons = panelButtons;
	}

	/**
	 * @param panelEditBlogView the panelEditBlogView to set
	 */
	public void setPanelEditBlogView(Panel panelEditBlogView) {
		this.panelEditBlogView = panelEditBlogView;
	}
	
	/**
	 * @param tableBlogData the panelBlogData to set
	 */
	public void setTableBlogData(HTMLTable tableBlogData) {
		this.tableBlogData = tableBlogData;
	}
	
	/**
	 * @param textAreaDescrption the textAreaDescrption to set
	 */
	public void setTextAreaDescription(TextArea textAreaDescrption) {
		this.textAreaDescription = textAreaDescrption;
	}
	
	/**
	 * @param textBoxTitle the textBoxTitle to set
	 */
	public void setTextBoxTitle(TextBox textBoxTitle) {
		this.textBoxTitle = textBoxTitle;
	}
	
	/**
	 * @param treeBlogEnties the treeBlogEnties to set
	 */
	public void setTreeBlogEntries(Tree treeBlogEnties) {
		this.treeBlogEntries = treeBlogEnties;
	}
 	
	/**
	 * @param verticalPanelEditBlogView the verticalPanelEditBlogView to set
	 */
	public void setVerticalPanelEditBlogView(VerticalPanel verticalPanelEditBlogView) {
		this.panelEditBlogView = verticalPanelEditBlogView;
	}

}
